home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / plain C OS8 / Gadgets / TabbedPanel.h < prev   
Encoding:
C/C++ Source or Header  |  1998-10-29  |  1.9 KB  |  75 lines  |  [TEXT/CWIE]

  1. /* TabbedPanel.h */
  2.  
  3. #pragma once
  4.  
  5. #include "AMWindow.h"
  6.  
  7. struct AMDoc;
  8. struct DDocData;
  9. struct GadgetsEngine;
  10.  
  11. //----------
  12. struct TabbedPanel {
  13.     AMWindow        super;
  14.  
  15.     DDocData*        mData;
  16.     ControlHandle    mBarsHandle;
  17.     ControlHandle    mScrollBarsHandle;
  18.     ControlHandle    mStandard2Handle;
  19.     ControlHandle    mGraphicHandle;
  20.     ControlHandle    mSliderHandle;
  21.     ControlHandle    mTickMarksHandle;
  22.     ControlHandle    mNonDirectionalHandle;
  23.     ControlHandle    mLittleArrowsHandle;
  24.     ControlHandle    mSpinnerHandle;
  25.     ControlHandle    mVolumeControlHandle;
  26.     ControlHandle    mJimSSliderHandle;
  27.     ControlHandle    mProgressBarsHandle;
  28.     ControlHandle    mStandard3Handle;
  29.     ControlHandle    mIndeterminateHandle;
  30.     ControlHandle    mChasingArrowsHandle;
  31.     ControlHandle    mRectangleHandle;
  32.     ControlHandle    mRoundRectHandle;
  33.     ControlHandle    mBarberPoleHandle;
  34.     ControlHandle    mRoundBarberHandle;
  35. };
  36. typedef struct TabbedPanel TabbedPanel;
  37.  
  38. //----------
  39. TabbedPanel*        NewTabbedPanel ();
  40. void    DeleteTabbedPanel        (TabbedPanel*        window);
  41.  
  42. //----------
  43. //static:
  44. void    TabbedPanel_Create    (AMDoc*            inDoc,
  45.                              DDocData*        inData);
  46.  
  47. //public:
  48. void    TabbedPanel_Init        (TabbedPanel*    self);
  49. void    TabbedPanel_Free        (TabbedPanel*    self);
  50.  
  51. void    TabbedPanel_Open        (TabbedPanel*    self,
  52.                              AMDoc*            inDoc,
  53.                              DDocData*        inData);
  54. void    TabbedPanel_Close    (TabbedPanel*    self);
  55.  
  56. void    TabbedPanel_Track        (TabbedPanel*    self,
  57.                                  ControlHandle    whichControl,
  58.                                   short             whichPart,
  59.                                  Point            where);
  60. void    TabbedPanel_MouseIn        (TabbedPanel*    self,
  61.                                  Point            where,
  62.                                  short            modifiers);
  63. void    TabbedPanel_TypeIn        (TabbedPanel*    self,
  64.                                  char            ch);
  65. void    TabbedPanel_ExitCurField    (TabbedPanel*    self);
  66. void    TabbedPanel_DataChanged    (TabbedPanel*    self,
  67.                                  long            inDataID);
  68. void    TabbedPanel_Resize        (TabbedPanel*    self);
  69. void    TabbedPanel_Scroll        (TabbedPanel*    self,
  70.                                  short            newValue,
  71.                                  short            oldValue);
  72.  
  73. Boolean        TabbedPanel_DoCommand    (TabbedPanel*    self,
  74.                                      long            inCommand);
  75.